$.fn.studyplay_djs= function(){	
	var container = jQuery(this);
	var mydjs=new Array();
	for(i=0;i<container.length;i++)
	{
		var zz= $(container[i]).html();
        zz = zz.replace('-','/');
        zz = zz.replace('-','/');
        var sjzh = new Date(zz);
		mydjs[i]= parseInt(sjzh.getHours())*60*60 +parseInt(sjzh.getMinutes())*60+  parseInt(sjzh.getSeconds());
		//parseInt(zz.substring(11,13))*60*60 +parseInt(zz.substring(14,16))*60+  parseInt(zz.substring(17,19));
	}
    var timer = setInterval(function(){
									for(i=0;i<container.length;i++)
									{
										 var today=new Date();
						   				 var nowms = parseInt(today.getHours())*60*60 +parseInt(today.getMinutes())*60+  parseInt(today.getSeconds());
						   				 var msdiff = (15*60) -parseInt(nowms-parseInt(mydjs[i]));
										
										if(msdiff>0)
									   {
										  $(container[i]).html(Math.floor(msdiff/60)+":");
										  var sec = Math.floor(msdiff%60);
										  if(sec<10)
										  {
											$(container[i]).append("0");
											$(container[i]).append(Math.floor(msdiff%60));
										  }
										  else
										  {
											 $(container[i]).append(Math.floor(msdiff%60));
										  }
									   }
									   if(msdiff<=0)
									   {
									    // window.location.reload();
									   }								   
										
									}
									 },1000); 
	}